<div style="clear:both;"> </div>

<div style="margin: 0 auto;overflow: auto;width: 96%;" class="re_page">
	<div class="re_tot">
		<div class="re_tot1">
			<div class="re_left">
				<h2>Feeds</h2>
			</div>
			<div class="re_tit">
				<span>Merchant Name: <?php echo $merchant_details['name'];?></span>
				<span>MarketPlace ID: <?php echo $merchant_details['marketplace_id'];?></span>
			</div>
		</div>
		
	</div>

	<div style="margin: 0 auto;overflow: auto;width: 96%;" class="re_table">
	
		<div style="float:right;font-size:18px;margin:5px 0"><?php echo $this->pagination->create_links(); ?></div>

		<table cellspacing="0" cellpadding="0" width="100%" class="table table-condensed table-hover table-striped" id="result_table">

			<tr>
				<th>Feed Submission ID</th>
				<th>Feed Status</th>
				<!--  <th>Completed Date</th> -->
				<th>Download</th>
			</tr>
			<?php 
			 if(count($records)!=0){

				foreach($records as $row){ 
					echo "<tr>";

					echo "<td>";
					echo $row['feed_submission_id'];
					echo "</td>";
					echo "<td>";
					echo $row['status'];
					echo "</td>";
					/*echo "<td>";
					echo 'complete date';
					echo "</td>";*/
					echo "<td>";
					echo '<a href="'.site_url("feed_reports/get_report/{$row['feed_submission_id']}/{$merchant_details['id']}").'">Download</a>';
					echo "</td>";
					echo "</tr>";
				}

            }else{ ?>	

	    	<td colspan="4">No records</td>

	    <?php } ?>

		</table>

		<div style="float:right;font-size:18px;margin:5px 0"><?php echo $this->pagination->create_links(); ?></div>

		
	</div>
</div>



